import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const router = new VueRouter({
    routes: [
        {
            name:'Statistics-4',
            path:'/',
            component:()=>import('@/views/content/statistics-4')
        },
        {
            name:'Statistics-9',
            path:'/statistics-9',
            component:()=>import('@/views/content/statistics-9')
        },
        {
            name:'Statistics-1',
            path:'/statistics-1',
            component:()=>import('@/views/content/statistics-1')
        },
        {
            name:'Statistics-2',
            path:'/statistics-2',
            component:()=>import('@/views/content/statistics-2')
        },
        {
            name:'Statistics-10',
            path:'/statistics-10',
            component:()=>import('@/views/content/statistics-10')
        },
        {
            name:'Statistics-6',
            path:'/statistics-6',
            component:()=>import('@/views/content/statistics-6')
        },
        {
            name:'Statistics-7',
            path:'/statistics-7',
            component:()=>import('@/views/content/statistics-7')
        },
        {
            name:'Statistics-8',
            path:'/statistics-8',
            component:()=>import('@/views/content/statistics-8')
        },
        {
            name:'Login',
            path:'/login',
            component:()=>import('@/views/login/index')
        },
        {
            name:'Index',
            path:'/index',
            component:()=>import('@/views/index/index')
        },
        {
            name:'404',
            path:'/404',
            component:()=>import('@/views/error-page/404')
        },
        { path: '*'}
    ]
});
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location, onResolve, onReject) {
    if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject)
    return originalPush.call(this, location).catch(err => err)
}
export default router;
